package com.lcifn.middleware.rpc.transport;

import com.lcifn.middleware.rpc.transport.command.Command;

import java.net.URI;
import java.util.concurrent.CompletableFuture;

/**
 * 传输接口
 * @author lichao
 * @date 2020/12/13 17:43
 */
public interface Transport {

    /**
     * 发送请求指令
     * @param request 指令请求
     * @return
     */
    CompletableFuture<Command> send(Command request);
}
